package com.hspedu.tankgame;

import javax.swing.*;
import java.awt.*;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/2/12
 * @time 19:00
 */
public class TankGame01 extends JFrame {
    private MyPanel myPanel ;

    public TankGame01() throws HeadlessException {
        if (myPanel == null)
            myPanel = new MyPanel();
        this.add(myPanel);
        this.setSize(1000,750);
        this.setVisible(true);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    }

    public static void main(String[] args) {
        new TankGame01();
    }
}
